package com.grm.sys.mapper;

import com.grm.sys.model.SysRole;
import com.grm.sys.request.role.SysRoleQueryParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapper {
    List<SysRole> queryAll();

    List<SysRole> querySelective(@Param("queryParam") SysRoleQueryParam queryParam);

    List<SysRole> querySysRolesByUserId(@Param("userId") Long userId);


    SysRole queryByCode(@Param("code")String code);

    void insert(SysRole sysRole);

    SysRole queryById(@Param("id")Long id);

    List<SysRole> queryByIds(@Param("ids") List<Long> ids);

    void update(SysRole sysRole);

    void deleteByIds(@Param("ids")List<Long> ids);



}
